package jvm.jtacck.db.records;

import java.io.Serializable;
import java.util.List;

/**
 * TODO
 * @author Chris Gamble
 *
 */
public class CheckListPair extends Record implements Serializable {

    private static final long serialVersionUID = 1653895091733105977L;
    public final List<String> startingList;
    public final List<String> endingList;
    
    public CheckListPair(List<String> starting, List<String> ending){
        startingList = starting;
        endingList = ending;
    }
    
    public boolean equals(Object o) {
        if (o instanceof CheckListPair) {
            CheckListPair other = (CheckListPair) o;
            return startingList.equals(other.startingList) &&
                   endingList.equals(other.endingList);
        }
        return false;
    }
    
    public int hashCode() {
        return startingList.hashCode() + endingList.hashCode();
    }
    
    public String toString() {
        return "Starting CheckList: " + startingList +
               " \nEnding CheckList: " + endingList;
    }
}
